# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=diffoscope
pkgver=218
pkgrel=0
pkgdesc="In-depth comparison of files, archives, and directories"
url="https://diffoscope.org/"
arch="noarch"
license="GPL-3.0-or-later"
makedepends="python3-dev py3-setuptools py3-docutils"
depends="py3-magic py3-libarchive-c"
checkdepends="py3-pytest gzip bzip2 unzip libarchive-tools cdrkit
	openssh-client-default"
source="https://salsa.debian.org/reproducible-builds/diffoscope/-/archive/$pkgver/diffoscope-$pkgver.tar.gz
	"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=".:$PYTHONPATH" PYTHONDONTWRITEBYTECODE=1 py.test \
		-k 'not test_text_proper_indentation'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
6f7d5f8eecee066d81ea2f6172904ed5a32740dc7ec0cddbbd971b4f5e06117b2bf5262302600c4a9aa44bf618cfb4da90562d5c74fa5ce604b56b967a0dba59  diffoscope-218.tar.gz
"
